/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86131
 * Date: 2023-11-08
 * Time: 15:56
 */
 class Student{
    private String name;
    private String age;
    protected void eat(){
        System.out.println(this.name+"正在吃饭");
    }
    public  static void sleep(){
        System.out.println("正在睡觉");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public void printDate(){
        System.out.println(this.name+"正在吃饭");
    }
}

public class test {
    public static void main(String[] args) {
        Student stu1 = new Student();
        stu1.setName("caijun");
        stu1.setAge("26");
        stu1.printDate();
        Student.sleep();

    }
}
